package com.llly.client;

import com.llly.client.impl.ShoppingCarFeignClientImpl;
import com.llly.pojo.Easybuy_user_address;
import com.llly.pojo.ShoppingCar;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Component
@FeignClient(name = "provider9091",fallback = ShoppingCarFeignClientImpl.class)
public interface ShoppingCarFeignClient {


    @RequestMapping("/addShoppingCar")
    public int addShoppingCar(@RequestBody ShoppingCar sc);

    @RequestMapping("/showAllShoppingCar")
    public Map<String, Object> showAllShoppingCar(@RequestParam Integer uid);

    @RequestMapping("/getaddress")
    public List<Easybuy_user_address> getaddress(@RequestParam Integer uid);

    @RequestMapping("/addAddress")
    public int addAddress(@RequestParam Integer uid,@RequestParam String address,@RequestParam String remark) ;
        ;
    @RequestMapping("/updateCar")
    public int updateCar(@RequestParam Integer uid) ;

    @RequestMapping("/delCar")
    public int delCar(@RequestParam Integer uid,@RequestParam Integer pid) ;

    @RequestMapping("/xiugaikucun")
    public int xiugaikucun(@RequestParam Integer num,@RequestParam Integer pid) ;
}